import applyDevTools from "../src";
import "./editor.css";
import {getEditor} from "./test";



async function main() {
  const editor = await getEditor();
  const worker = new Worker(
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore: ""
    new URL("../src/json-diff.worker.ts", import.meta.url),
    {
      type: "module",
    }
  );
  applyDevTools(editor, { diffWorker: worker });
  // 执行一次 然后清除

  const a =setTimeout(async () => {
    await editor.commands.hello();
    clearTimeout(a)
  }, 5000);


}
main();
